<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>04事件对象</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<!-- 弹出事件源本身 -->
<body>
    <div id="demo">
        <button @click = "sailing ">点击出海</button>
    </div>
    <script type="text/javascript">
        Vue.config.productionTip = false
        new Vue({
            el: '#demo',
            methods: {
                sailing(e){
                    alert(e.target.innerText)
                }
            }
        })
    </script>
</body>

</html>